package com.usefullc.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.usefullc.system.entity.Pager;
import com.usefullc.system.query.BaseQuery;

import java.util.List;

/**
 * @author: Sampson
 * @date: 2022-10-15 17:33
 */
public interface IPageCallback<E> {

    Long count(BaseQuery q);

    List<E> dataList(BaseQuery q, Pager<E> pager);

}
